/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package LiveReservations.control.action;

import LiveReservations.control.info.IInformation;
import LiveReservations.control.info.ReservationInfo;
import LiveReservations.control.mocks.ReservationBookMock;

/**
 *
 * @author grigo_000
 */
public class ReservationAction implements IAction {

    @Override
    public boolean execute(IInformation info) {
        ReservationInfo resInfo = (ReservationInfo) info;
        ReservationBookMock resBook = new ReservationBookMock();
        return resBook.submitReservation(resInfo);
    }
    

    @Override
    public boolean undo() {
        return false;
    }
    
}
